/*
 * HuongDanDuongDiBangGiongNoi.h
 *
 *  Created on: Mar 12, 2011
 *      Author: ToanNhan
 */

#ifndef HUONGDANDUONGDIBANGGIONGNOI_H_
#define HUONGDANDUONGDIBANGGIONGNOI_H_

#include <FBase.h>
#include "../Model/DiaDiem.h"
#include "ITextReader.h"
#include "GoogleReader.h"
#include "VietnameseReader.h"
using namespace Osp::Base;
using namespace Osp::Base::Collection;
using namespace Osp::Base::Runtime;

class HuongDanDuongDiBangGiongNoi :
	public IRunnable,
	public Object

{
private:
	ITextReader *textReader;
	vector<String> arrText;
	HuongDanDuongDiBangGiongNoi();
	static HuongDanDuongDiBangGiongNoi *pInstance;
public:
	static HuongDanDuongDiBangGiongNoi* GetInstance();
	ITextReader* GetReader();
	void read(String text);
	void read(LinkedListT<DiaChi> *lstDiaDiem);
	virtual ~HuongDanDuongDiBangGiongNoi();
	void SetMode(int mode);
	static const int GOOGLE_MODE = 0;
	static const int VIETNAMESE_MODE = 1;
//override
public:
	Object* Run();

};

#endif /* HUONGDANDUONGDIBANGGIONGNOI_H_ */
